home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / MacTech® Magazine / Volume 11 - 1995 / 11.07 Jul 95 / Apple Guide Extensions / MacTech demo as text < prev    next >
Encoding:
Text File  |  1995-03-07  |  3.4 KB  |  102 lines  |  [TEXT/MSWD]

  1. #Define formats and set default. Note that the No Style formats let you
  2. #use your word processor to set color, style, font, etc. This is useful
  3. #for hot text.
  4. <Define Format>    "Tag", Column(6,0,54), "Espy Sans Bold", 10, Plain, Black, Right, false
  5. <Define Format>    "Body", Column(6,65,330), "Espy Serif", 10, Plain, Black,Left, true
  6. <Define Format>    "Full No Style", Column(6,11,330), "Espy Serif", 10, , ,Left, true
  7.  
  8. <Default Format> "Full No Style"
  9.  
  10. <Default Nav Button Set>  NONE
  11.  
  12. <Define Event>  "ReturnBack", 's***', 'help', 'gobk' 
  13.  
  14. #Define Prompt Sets and set default
  15. <Define Prompt Set>  "default navigation prompts", "Click the right arrow to continue", "Click the left arrow to go back or the right arrow to continue", "That’s all, you’re done!","Do this, then click the right arrow to continue"
  16.  
  17. <Default Prompt Set> "default navigation prompts"
  18.  
  19. <Version> "Installing an alias for a specific version of an application", "1.0"
  20.  
  21. #The external code module we created
  22. <Resource> "contextCheck", ALL
  23.  
  24. #coach marks
  25. <Define AppleScript Coach> "coach WP", REDCIRCLE, "demo coach mark"
  26. <Define Menu Coach>  "coach makeAlias", 'MACS', REDCIRCLE, "File", "Make alias", RED, UNDERLINE
  27. <Define Menu Coach>  "coach findFile", 'MACS', REDCIRCLE, "File", "Find…", RED, UNDERLINE
  28.  
  29. #context checks
  30. <Define Context Check> "VersionApplicationRunning", 'apVr', 'MACS', SHORT, OSTYPE, SHORT, SHORT, SHORT 
  31.  
  32. <Startup Window> Presentation, "Alias installation"
  33.  
  34. <Define Sequence> "Alias installation"
  35. <Define Panel> "Start"
  36. This guide file will:
  37. . verify that WordPerfect version 3.1.0 is installed on your computer and can run, and
  38. . assist you in creating an alias for it to place in the Apple menu
  39. <End Panel>
  40.  
  41. <Skip If> VersionApplicationRunning(3,'WPC2', 3, 1, 0)
  42. <Define Panel> "Launch WP"
  43. <Format> "Tag"
  44. Do this
  45. <Format> "Body"
  46. To start, please launch WordPerfect -- either by double-clicking on it or by double-clicking on a WordPerfect document.
  47. <End Panel> 
  48.  
  49. <Start Making Sure> VersionApplicationRunning(3,'WPC2', 3, 1, 0), "Oops: no WP"
  50. <Define Panel> "Select WP"
  51. <Coach Mark> "coach WP"
  52. <Format> "Tag"
  53. Do this
  54. <Format> "Body"
  55. Select the WordPerfect application by clicking once on it.
  56. <End Panel> 
  57.  
  58. <Define Panel> "Make Alias for WP"
  59. <Coach Mark> "coach makeAlias"
  60. <Format> "Tag"
  61. Do this
  62. <Format> "Body"
  63. Now create an alias for WordPerfect by choosing Make Alias from the File menu.
  64. <End Panel>
  65.  
  66. <Define Panel> "Moving the alias to the Apple Menu folder"
  67. Move the alias you have just created to the Apple Menu folder.
  68.  
  69. (Don’t do this in a real live guide file! Coach the user through the process. This section is omitted here because it is used several times in Macintosh Guide. Use the same logic as is used there.)
  70. <End Panel>
  71. <End Making Sure>
  72.  
  73. <End Sequence> 
  74.  
  75. <Define Sequence> "Oops: no WP"
  76. <If> VersionApplicationRunning(0, 'WPC2', 3, 1, 0)
  77. <Define Panel> "Oops: wrong version"
  78. <Coach Mark> "coach findFile"
  79. <Format> "Tag"
  80. Oops
  81. <Format> "Body"
  82. The wrong version of WordPerfect is running. Either locate another on the computer (using the Find File command) or install the correct version.
  83.  
  84. Click OK when version 3.1.0 of WordPerfect is running.
  85.  
  86. <Standard Button>    "OK", Center, ReturnBack()
  87. <End Panel>
  88. <Else>
  89. <Define Panel> "Oops: no WP"
  90. <Format> "Tag"
  91. Oops
  92. <Format> "Body"
  93. WordPerfect is not running. Either locate it on the computer (using the Find File command) and run it, or install it and run it.
  94.  
  95. Click OK when WordPerfect is running.
  96.  
  97. <Standard Button>    "OK", Center, ReturnBack()
  98. <End Panel>
  99. <End If>
  100. <End Sequence>
  101.  
  102.